// team17

import java.io.File;
import java.util.Scanner;

// c
public class c {

  static String[] r = new String[10000];

  /**
   * @param args
   *          c
   */
  public static void main(String[] args) throws Throwable {
    r[2] = "(1/1)^3 + (1/1)^3 = 2";
    r[6] = "(37/21)^3 + (17/21)^3 = 6";
    r[7] = "(5/3)^3 + (4/3)^3 = 7";
    r[9] = "(2/1)^3 + (1/1)^3 = 9";
    r[12] = "(89/39)^3 + (19/39)^3 = 12";
    r[13] = "(7/3)^3 + (2/3)^3 = 13";
    r[15] = "(683/294)^3 + (397/294)^3 = 15";
    r[16] = "(2/1)^3 + (2/1)^3 = 16";
    r[19] = "(5/2)^3 + (3/2)^3 = 19";
    r[20] = "(19/7)^3 + (1/7)^3 = 20";
    r[26] = "(75/28)^3 + (53/28)^3 = 26";
    r[28] = "(3/1)^3 + (1/1)^3 = 28";
    r[30] = "(163/57)^3 + (107/57)^3 = 30";
    r[33] = "(1853/582)^3 + (523/582)^3 = 33";
    r[35] = "(3/1)^3 + (2/1)^3 = 35";
    r[37] = "(19/7)^3 + (18/7)^3 = 37";
    r[43] = "(7/2)^3 + (1/2)^3 = 43";
    r[48] = "(74/21)^3 + (34/21)^3 = 48";
    r[54] = "(3/1)^3 + (3/1)^3 = 54";
    r[56] = "(10/3)^3 + (8/3)^3 = 56";
    r[62] = "(11/3)^3 + (7/3)^3 = 62";
    r[63] = "(248/65)^3 + (127/65)^3 = 63";
    r[65] = "(4/1)^3 + (1/1)^3 = 65";
    r[70] = "(53/13)^3 + (17/13)^3 = 70";
    r[72] = "(4/1)^3 + (2/1)^3 = 72";
    r[84] = "(433/111)^3 + (323/111)^3 = 84";
    r[86] = "(13/3)^3 + (5/3)^3 = 86";
    r[89] = "(53/13)^3 + (36/13)^3 = 89";
    r[91] = "(4/1)^3 + (3/1)^3 = 91";
    r[96] = "(178/39)^3 + (38/39)^3 = 96";
    r[98] = "(669/152)^3 + (355/152)^3 = 98";
    r[104] = "(14/3)^3 + (4/3)^3 = 104";
    r[107] = "(90/19)^3 + (17/19)^3 = 107";
    r[110] = "(629/134)^3 + (251/134)^3 = 110";
    r[117] = "(545/133)^3 + (484/133)^3 = 117";
    r[120] = "(683/147)^3 + (397/147)^3 = 120";
    r[124] = "(205/42)^3 + (83/42)^3 = 124";
    r[126] = "(5/1)^3 + (1/1)^3 = 126";
    r[128] = "(4/1)^3 + (4/1)^3 = 128";
    r[133] = "(5/1)^3 + (2/1)^3 = 133";
    r[134] = "(9/2)^3 + (7/2)^3 = 134";
    r[143] = "(73/14)^3 + (15/14)^3 = 143";
    r[152] = "(5/1)^3 + (3/1)^3 = 152";
    r[160] = "(38/7)^3 + (2/7)^3 = 160";
    r[162] = "(37/7)^3 + (17/7)^3 = 162";
    r[163] = "(90/19)^3 + (73/19)^3 = 163";
    r[171] = "(37/7)^3 + (20/7)^3 = 171";
    r[180] = "(901/183)^3 + (719/183)^3 = 180";
    r[182] = "(11/2)^3 + (5/2)^3 = 182";
    r[183] = "(14/3)^3 + (13/3)^3 = 183";
    r[189] = "(5/1)^3 + (4/1)^3 = 189";
    r[201] = "(16/3)^3 + (11/3)^3 = 201";
    r[203] = "(229/39)^3 + (32/39)^3 = 203";
    r[208] = "(75/14)^3 + (53/14)^3 = 208";
    r[209] = "(971/182)^3 + (701/182)^3 = 209";
    r[210] = "(1387/237)^3 + (503/237)^3 = 210";
    r[215] = "(1284/217)^3 + (431/217)^3 = 215";
    r[217] = "(6/1)^3 + (1/1)^3 = 217";
    r[218] = "(935/156)^3 + (217/156)^3 = 218";
    r[219] = "(17/3)^3 + (10/3)^3 = 219";
    r[223] = "(509/84)^3 + (67/84)^3 = 223";
    r[224] = "(6/1)^3 + (2/1)^3 = 224";
    r[240] = "(326/57)^3 + (214/57)^3 = 240";
    r[243] = "(6/1)^3 + (3/1)^3 = 243";
    r[250] = "(5/1)^3 + (5/1)^3 = 250";
    r[254] = "(587/104)^3 + (437/104)^3 = 254";
    r[264] = "(1853/291)^3 + (523/291)^3 = 264";
    r[273] = "(19/3)^3 + (8/3)^3 = 273";
    r[278] = "(13/2)^3 + (3/2)^3 = 278";
    r[280] = "(6/1)^3 + (4/1)^3 = 280";
    r[287] = "(248/39)^3 + (121/39)^3 = 287";
    r[289] = "(199/31)^3 + (90/31)^3 = 289";
    r[296] = "(38/7)^3 + (36/7)^3 = 296";
    r[301] = "(382/57)^3 + (5/57)^3 = 301";
    r[308] = "(199/31)^3 + (109/31)^3 = 308";
    r[309] = "(20/3)^3 + (7/3)^3 = 309";
    r[322] = "(1873/278)^3 + (703/278)^3 = 322";
    r[323] = "(252/37)^3 + (71/37)^3 = 323";
    r[324] = "(89/13)^3 + (19/13)^3 = 324";
    r[325] = "(128/21)^3 + (97/21)^3 = 325";
    r[330] = "(1621/273)^3 + (1349/273)^3 = 330";
    r[335] = "(763/117)^3 + (452/117)^3 = 335";
    r[341] = "(6/1)^3 + (5/1)^3 = 341";
    r[342] = "(2387/344)^3 + (685/344)^3 = 342";
    r[344] = "(7/1)^3 + (1/1)^3 = 344";
    r[351] = "(7/1)^3 + (2/1)^3 = 351";
    r[370] = "(7/1)^3 + (3/1)^3 = 370";
    r[384] = "(148/21)^3 + (68/21)^3 = 384";
    r[397] = "(360/49)^3 + (37/49)^3 = 397";
    r[399] = "(22/3)^3 + (5/3)^3 = 399";
    r[405] = "(683/98)^3 + (397/98)^3 = 405";
    r[407] = "(7/1)^3 + (4/1)^3 = 407";
    r[422] = "(15/2)^3 + (1/2)^3 = 422";
    r[432] = "(6/1)^3 + (6/1)^3 = 432";
    r[433] = "(37/6)^3 + (35/6)^3 = 433";
    r[436] = "(19/3)^3 + (17/3)^3 = 436";
    r[441] = "(13/2)^3 + (11/2)^3 = 441";
    r[448] = "(20/3)^3 + (16/3)^3 = 448";
    r[449] = "(323/43)^3 + (126/43)^3 = 449";
    r[453] = "(23/3)^3 + (4/3)^3 = 453";
    r[457] = "(41/6)^3 + (31/6)^3 = 457";
    r[468] = "(7/1)^3 + (5/1)^3 = 468";
    r[477] = "(89/13)^3 + (70/13)^3 = 477";
    r[481] = "(43/6)^3 + (29/6)^3 = 481";
    r[496] = "(22/3)^3 + (14/3)^3 = 496";
    r[497] = "(55/7)^3 + (16/7)^3 = 497";
    r[504] = "(496/65)^3 + (254/65)^3 = 504";
    r[511] = "(1360/171)^3 + (341/171)^3 = 511";
    r[513] = "(8/1)^3 + (1/1)^3 = 513";
    r[520] = "(8/1)^3 + (2/1)^3 = 520";
    r[532] = "(23/3)^3 + (13/3)^3 = 532";
    r[539] = "(8/1)^3 + (3/1)^3 = 539";
    r[540] = "(57/7)^3 + (3/7)^3 = 540";
    r[553] = "(47/6)^3 + (25/6)^3 = 553";
    r[559] = "(7/1)^3 + (6/1)^3 = 559";
    r[560] = "(106/13)^3 + (34/13)^3 = 560";
    r[576] = "(8/1)^3 + (4/1)^3 = 576";
    r[579] = "(25/3)^3 + (2/3)^3 = 579";
    r[589] = "(145/21)^3 + (134/21)^3 = 589";
    r[601] = "(49/6)^3 + (23/6)^3 = 601";
    r[628] = "(25/3)^3 + (11/3)^3 = 628";
    r[637] = "(8/1)^3 + (5/1)^3 = 637";
    r[651] = "(26/3)^3 + (1/3)^3 = 651";
    r[657] = "(17/2)^3 + (7/2)^3 = 657";
    r[658] = "(55/7)^3 + (39/7)^3 = 658";
    r[672] = "(866/111)^3 + (646/111)^3 = 672";
    r[683] = "(360/49)^3 + (323/49)^3 = 683";
    r[686] = "(7/1)^3 + (7/1)^3 = 686";
    r[688] = "(26/3)^3 + (10/3)^3 = 688";
    r[702] = "(225/28)^3 + (159/28)^3 = 702";
    r[712] = "(106/13)^3 + (72/13)^3 = 712";
    r[719] = "(540/61)^3 + (179/61)^3 = 719";
    r[721] = "(53/6)^3 + (19/6)^3 = 721";
    r[728] = "(8/1)^3 + (6/1)^3 = 728";
    r[730] = "(9/1)^3 + (1/1)^3 = 730";
    r[737] = "(9/1)^3 + (2/1)^3 = 737";
    r[750] = "(185/21)^3 + (85/21)^3 = 750";
    r[756] = "(9/1)^3 + (3/1)^3 = 756";
    r[768] = "(356/39)^3 + (76/39)^3 = 768";
    r[784] = "(669/76)^3 + (355/76)^3 = 784";
    r[793] = "(9/1)^3 + (4/1)^3 = 793";
    r[810] = "(163/19)^3 + (107/19)^3 = 810";
    r[823] = "(983/105)^3 + (142/105)^3 = 823";
    r[829] = "(607/70)^3 + (393/70)^3 = 829";
    r[832] = "(28/3)^3 + (8/3)^3 = 832";
    r[845] = "(23/3)^3 + (22/3)^3 = 845";
    r[851] = "(199/21)^3 + (8/21)^3 = 851";
    r[854] = "(9/1)^3 + (5/1)^3 = 854";
    r[855] = "(8/1)^3 + (7/1)^3 = 855";
    r[856] = "(180/19)^3 + (34/19)^3 = 856";
    r[873] = "(19/2)^3 + (5/2)^3 = 873";
    r[875] = "(25/3)^3 + (20/3)^3 = 875";
    r[880] = "(629/67)^3 + (251/67)^3 = 880";
    r[884] = "(757/79)^3 + (127/79)^3 = 884";
    r[889] = "(125/13)^3 + (2/13)^3 = 889";
    r[891] = "(1853/194)^3 + (523/194)^3 = 891";
    r[901] = "(540/61)^3 + (361/61)^3 = 901";
    r[905] = "(26/3)^3 + (19/3)^3 = 905";
    r[916] = "(29/3)^3 + (7/3)^3 = 916";
    r[919] = "(703/73)^3 + (216/73)^3 = 919";
    r[936] = "(1090/133)^3 + (968/133)^3 = 936";
    r[945] = "(9/1)^3 + (6/1)^3 = 945";
    r[946] = "(1085/114)^3 + (499/114)^3 = 946";
    r[960] = "(1366/147)^3 + (794/147)^3 = 960";
    r[961] = "(59/6)^3 + (13/6)^3 = 961";
    r[962] = "(129/14)^3 + (79/14)^3 = 962";
    r[973] = "(905/93)^3 + (346/93)^3 = 973";
    r[981] = "(308/31)^3 + (19/31)^3 = 981";
    r[992] = "(205/21)^3 + (83/21)^3 = 992";
    r[995] = "(28/3)^3 + (17/3)^3 = 995";
    r[999] = "(57/7)^3 + (54/7)^3 = 999";
    r[1001] = "(10/1)^3 + (1/1)^3 = 1001";
    r[1007] = "(629/67)^3 + (378/67)^3 = 1007";
    r[1008] = "(10/1)^3 + (2/1)^3 = 1008";
    r[1024] = "(8/1)^3 + (8/1)^3 = 1024";
    r[1027] = "(10/1)^3 + (3/1)^3 = 1027";
    r[1036] = "(17/2)^3 + (15/2)^3 = 1036";
    r[1051] = "(35/4)^3 + (29/4)^3 = 1051";
    r[1055] = "(29/3)^3 + (16/3)^3 = 1055";
    r[1057] = "(61/6)^3 + (11/6)^3 = 1057";
    r[1064] = "(10/1)^3 + (4/1)^3 = 1064";
    r[1072] = "(9/1)^3 + (7/1)^3 = 1072";
    r[1099] = "(37/4)^3 + (27/4)^3 = 1099";
    r[1108] = "(31/3)^3 + (5/3)^3 = 1108";
    r[1125] = "(10/1)^3 + (5/1)^3 = 1125";
    r[1132] = "(19/2)^3 + (13/2)^3 = 1132";
    r[1144] = "(73/7)^3 + (15/7)^3 = 1144";
    r[1161] = "(21/2)^3 + (3/2)^3 = 1161";
    r[1171] = "(39/4)^3 + (25/4)^3 = 1171";
    r[1183] = "(886/93)^3 + (635/93)^3 = 1183";
    r[1190] = "(703/73)^3 + (487/73)^3 = 1190";
    r[1205] = "(31/3)^3 + (14/3)^3 = 1205";
    r[1209] = "(671/63)^3 + (58/63)^3 = 1209";
    r[1216] = "(10/1)^3 + (6/1)^3 = 1216";
    r[1228] = "(649/63)^3 + (323/63)^3 = 1228";
    r[1241] = "(9/1)^3 + (8/1)^3 = 1241";
    r[1251] = "(1951/190)^3 + (1049/190)^3 = 1251";
    r[1261] = "(75/7)^3 + (22/7)^3 = 1261";
    r[1267] = "(41/4)^3 + (23/4)^3 = 1267";
    r[1270] = "(379/42)^3 + (341/42)^3 = 1270";
    r[1273] = "(65/6)^3 + (7/6)^3 = 1273";
    r[1280] = "(76/7)^3 + (4/7)^3 = 1280";
    r[1295] = "(32/3)^3 + (13/3)^3 = 1295";
    r[1296] = "(74/7)^3 + (34/7)^3 = 1296";
    r[1304] = "(180/19)^3 + (146/19)^3 = 1304";
    r[1324] = "(21/2)^3 + (11/2)^3 = 1324";
    r[1330] = "(1061/97)^3 + (269/97)^3 = 1330";
    r[1332] = "(11/1)^3 + (1/1)^3 = 1332";
    r[1339] = "(11/1)^3 + (2/1)^3 = 1339";
    r[1343] = "(10/1)^3 + (7/1)^3 = 1343";
    r[1349] = "(990/91)^3 + (359/91)^3 = 1349";
    r[1358] = "(11/1)^3 + (3/1)^3 = 1358";
    r[1368] = "(74/7)^3 + (40/7)^3 = 1368";
    r[1378] = "(687/62)^3 + (161/62)^3 = 1378";
    r[1379] = "(142/13)^3 + (55/13)^3 = 1379";
    r[1387] = "(43/4)^3 + (21/4)^3 = 1387";
    r[1393] = "(67/6)^3 + (5/6)^3 = 1393";
    r[1395] = "(11/1)^3 + (4/1)^3 = 1395";
    r[1421] = "(236/21)^3 + (25/21)^3 = 1421";
    r[1426] = "(1753/186)^3 + (1559/186)^3 = 1426";
    r[1440] = "(1802/183)^3 + (1438/183)^3 = 1440";
    r[1456] = "(11/1)^3 + (5/1)^3 = 1456";
    r[1458] = "(9/1)^3 + (9/1)^3 = 1458";
    r[1459] = "(804/77)^3 + (527/77)^3 = 1459";
    r[1463] = "(388/39)^3 + (305/39)^3 = 1463";
    r[1464] = "(28/3)^3 + (26/3)^3 = 1464";
    r[1482] = "(29/3)^3 + (25/3)^3 = 1482";
    r[1500] = "(445/39)^3 + (95/39)^3 = 1500";
    r[1505] = "(34/3)^3 + (11/3)^3 = 1505";
    r[1512] = "(10/1)^3 + (8/1)^3 = 1512";
    r[1521] = "(23/2)^3 + (1/2)^3 = 1521";
    r[1531] = "(45/4)^3 + (19/4)^3 = 1531";
    r[1547] = "(11/1)^3 + (6/1)^3 = 1547";
    r[1554] = "(31/3)^3 + (23/3)^3 = 1554";
    r[1567] = "(1260/109)^3 + (307/109)^3 = 1567";
    r[1588] = "(35/3)^3 + (1/3)^3 = 1588";
    r[1591] = "(208/21)^3 + (179/21)^3 = 1591";
    r[1603] = "(142/13)^3 + (87/13)^3 = 1603";
    r[1608] = "(32/3)^3 + (22/3)^3 = 1608";
    r[1612] = "(23/2)^3 + (9/2)^3 = 1612";
    r[1621] = "(990/91)^3 + (631/91)^3 = 1621";
    r[1624] = "(458/39)^3 + (64/39)^3 = 1624";
    r[1625] = "(35/3)^3 + (10/3)^3 = 1625";
    r[1629] = "(433/37)^3 + (110/37)^3 = 1629";
    r[1657] = "(71/6)^3 + (1/6)^3 = 1657";
    r[1664] = "(75/7)^3 + (53/7)^3 = 1664";
    r[1665] = "(547/52)^3 + (413/52)^3 = 1665";
    r[1672] = "(971/91)^3 + (701/91)^3 = 1672";
    r[1673] = "(1489/129)^3 + (662/129)^3 = 1673";
    r[1674] = "(11/1)^3 + (7/1)^3 = 1674";
    r[1699] = "(47/4)^3 + (17/4)^3 = 1699";
    r[1701] = "(744/65)^3 + (381/65)^3 = 1701";
    r[1703] = "(73/7)^3 + (58/7)^3 = 1703";
    r[1720] = "(2568/217)^3 + (862/217)^3 = 1720";
    r[1729] = "(10/1)^3 + (9/1)^3 = 1729";
    r[1736] = "(12/1)^3 + (2/1)^3 = 1736";
    r[1737] = "(1253/117)^3 + (934/117)^3 = 1737";
    r[1744] = "(935/78)^3 + (217/78)^3 = 1744";
    r[1752] = "(34/3)^3 + (20/3)^3 = 1752";
    r[1755] = "(12/1)^3 + (3/1)^3 = 1755";
    r[1773] = "(520/43)^3 + (71/43)^3 = 1773";
    r[1784] = "(509/42)^3 + (67/42)^3 = 1784";
    r[1791] = "(308/31)^3 + (289/31)^3 = 1791";
    r[1792] = "(12/1)^3 + (4/1)^3 = 1792";
    r[1798] = "(301/26)^3 + (163/26)^3 = 1798";
    r[1801] = "(1207/103)^3 + (594/103)^3 = 1801";
    r[1820] = "(1207/103)^3 + (613/103)^3 = 1820";
    r[1835] = "(661/63)^3 + (554/63)^3 = 1835";
    r[1842] = "(35/3)^3 + (19/3)^3 = 1842";
    r[1843] = "(11/1)^3 + (8/1)^3 = 1843";
    r[1853] = "(12/1)^3 + (5/1)^3 = 1853";
    r[1870] = "(1637/133)^3 + (233/133)^3 = 1870";
    r[1890] = "(159/13)^3 + (51/13)^3 = 1890";
    r[1891] = "(49/4)^3 + (15/4)^3 = 1891";
    r[1892] = "(239/21)^3 + (157/21)^3 = 1892";
    r[1895] = "(37/3)^3 + (8/3)^3 = 1895";
    r[1920] = "(652/57)^3 + (428/57)^3 = 1920";
    r[1925] = "(236/19)^3 + (39/19)^3 = 1925";
    r[1944] = "(12/1)^3 + (6/1)^3 = 1944";
    r[1961] = "(1890/151)^3 + (71/151)^3 = 1961";
    r[1967] = "(1418/129)^3 + (1111/129)^3 = 1967";
    r[1996] = "(25/2)^3 + (7/2)^3 = 1996";
    r[2000] = "(10/1)^3 + (10/1)^3 = 2000";
    r[2013] = "(265/21)^3 + (32/21)^3 = 2013";
    r[2015] = "(21/2)^3 + (19/2)^3 = 2015";
    r[2032] = "(587/52)^3 + (437/52)^3 = 2032";
    r[2045] = "(38/3)^3 + (7/3)^3 = 2045";
    r[2058] = "(37/3)^3 + (17/3)^3 = 2058";
    r[2060] = "(11/1)^3 + (9/1)^3 = 2060";
    r[2071] = "(12/1)^3 + (7/1)^3 = 2071";
    r[2089] = "(1693/133)^3 + (396/133)^3 = 2089";
    r[2093] = "(1457/114)^3 + (199/114)^3 = 2093";
    r[2107] = "(51/4)^3 + (13/4)^3 = 2107";
    r[2114] = "(657/52)^3 + (239/52)^3 = 2114";
    r[2135] = "(23/2)^3 + (17/2)^3 = 2135";
    r[2181] = "(887/84)^3 + (841/84)^3 = 2181";
    r[2184] = "(38/3)^3 + (16/3)^3 = 2184";
    r[2198] = "(13/1)^3 + (1/1)^3 = 2198";
    r[2205] = "(13/1)^3 + (2/1)^3 = 2205";
    r[2213] = "(1260/109)^3 + (953/109)^3 = 2213";
    r[2223] = "(547/42)^3 + (101/42)^3 = 2223";
    r[2224] = "(13/1)^3 + (3/1)^3 = 2224";
    r[2231] = "(939/76)^3 + (533/76)^3 = 2231";
    r[2240] = "(12/1)^3 + (8/1)^3 = 2240";
    r[2261] = "(13/1)^3 + (4/1)^3 = 2261";
    r[2267] = "(1638/127)^3 + (629/127)^3 = 2267";
    r[2268] = "(433/37)^3 + (323/37)^3 = 2268";
    r[2296] = "(496/39)^3 + (242/39)^3 = 2296";
    r[2312] = "(398/31)^3 + (180/31)^3 = 2312";
    r[2317] = "(32/3)^3 + (31/3)^3 = 2317";
    r[2322] = "(13/1)^3 + (5/1)^3 = 2322";
    r[2331] = "(11/1)^3 + (10/1)^3 = 2331";
    r[2347] = "(53/4)^3 + (11/4)^3 = 2347";
    r[2359] = "(34/3)^3 + (29/3)^3 = 2359";
    r[2368] = "(76/7)^3 + (72/7)^3 = 2368";
    r[2375] = "(25/2)^3 + (15/2)^3 = 2375";
    r[2401] = "(35/3)^3 + (28/3)^3 = 2401";
    r[2403] = "(159/13)^3 + (108/13)^3 = 2403";
    r[2408] = "(764/57)^3 + (10/57)^3 = 2408";
    r[2413] = "(13/1)^3 + (6/1)^3 = 2413";
    r[2457] = "(12/1)^3 + (9/1)^3 = 2457";
    r[2464] = "(398/31)^3 + (218/31)^3 = 2464";
    r[2472] = "(40/3)^3 + (14/3)^3 = 2472";
    r[2476] = "(27/2)^3 + (5/2)^3 = 2476";
    r[2483] = "(176/13)^3 + (15/13)^3 = 2483";
    r[2500] = "(95/7)^3 + (5/7)^3 = 2500";
    r[2527] = "(37/3)^3 + (26/3)^3 = 2527";
    r[2540] = "(13/1)^3 + (7/1)^3 = 2540";
    r[2546] = "(93/7)^3 + (41/7)^3 = 2546";
    r[2555] = "(41/3)^3 + (4/3)^3 = 2555";
    r[2574] = "(337/26)^3 + (191/26)^3 = 2574";
    r[2576] = "(1873/139)^3 + (703/139)^3 = 2576";
    r[2584] = "(504/37)^3 + (142/37)^3 = 2584";
    r[2592] = "(178/13)^3 + (38/13)^3 = 2592";
    r[2600] = "(256/21)^3 + (194/21)^3 = 2600";
    r[2611] = "(38/3)^3 + (25/3)^3 = 2611";
    r[2627] = "(2159/157)^3 + (468/157)^3 = 2627";
    r[2634] = "(41/3)^3 + (13/3)^3 = 2634";
    r[2639] = "(253/19)^3 + (124/19)^3 = 2639";
    r[2646] = "(2007/152)^3 + (1065/152)^3 = 2646";
    r[2647] = "(1638/127)^3 + (1009/127)^3 = 2647";
    r[2662] = "(11/1)^3 + (11/1)^3 = 2662";
    r[2666] = "(767/56)^3 + (257/56)^3 = 2666";
    r[2674] = "(253/19)^3 + (129/19)^3 = 2674";
    r[2680] = "(1526/117)^3 + (904/117)^3 = 2680";
    r[2709] = "(13/1)^3 + (8/1)^3 = 2709";
    r[2728] = "(12/1)^3 + (10/1)^3 = 2728";
    r[2735] = "(27/2)^3 + (13/2)^3 = 2735";
    r[2736] = "(2387/172)^3 + (685/172)^3 = 2736";
    r[2745] = "(14/1)^3 + (1/1)^3 = 2745";
    r[2752] = "(14/1)^3 + (2/1)^3 = 2752";
    r[2755] = "(93/7)^3 + (52/7)^3 = 2755";
    r[2771] = "(14/1)^3 + (3/1)^3 = 2771";
    r[2808] = "(14/1)^3 + (4/1)^3 = 2808";
    r[2821] = "(40/3)^3 + (23/3)^3 = 2821";
    r[2869] = "(14/1)^3 + (5/1)^3 = 2869";
    r[2889] = "(270/19)^3 + (51/19)^3 = 2889";
    r[2899] = "(57/4)^3 + (7/4)^3 = 2899";
    r[2907] = "(520/43)^3 + (449/43)^3 = 2907";
    r[2914] = "(515/39)^3 + (331/39)^3 = 2914";
    r[2926] = "(13/1)^3 + (9/1)^3 = 2926";
    r[2945] = "(43/3)^3 + (2/3)^3 = 2945";
    r[2947] = "(41/3)^3 + (22/3)^3 = 2947";
    r[2960] = "(14/1)^3 + (6/1)^3 = 2960";
    r[2970] = "(1887/134)^3 + (753/134)^3 = 2970";
    r[2977] = "(1213/93)^3 + (848/93)^3 = 2977";
    r[2990] = "(1693/133)^3 + (1297/133)^3 = 2990";
    r[2994] = "(43/3)^3 + (11/3)^3 = 2994";
    r[3015] = "(299/21)^3 + (106/21)^3 = 3015";
    r[3031] = "(236/19)^3 + (197/19)^3 = 3031";
    r[3041] = "(1637/133)^3 + (1404/133)^3 = 3041";
    r[3043] = "(1873/139)^3 + (1170/139)^3 = 3043";
    r[3052] = "(29/2)^3 + (3/2)^3 = 3052";
    r[3059] = "(12/1)^3 + (11/1)^3 = 3059";
    r[3072] = "(296/21)^3 + (136/21)^3 = 3072";
    r[3087] = "(14/1)^3 + (7/1)^3 = 3087";
    r[3095] = "(508/35)^3 + (117/35)^3 = 3095";
    r[3155] = "(44/3)^3 + (1/3)^3 = 3155";
    r[3159] = "(1635/133)^3 + (1452/133)^3 = 3159";
    r[3176] = "(720/49)^3 + (74/49)^3 = 3176";
    r[3192] = "(44/3)^3 + (10/3)^3 = 3192";
    r[3197] = "(13/1)^3 + (10/1)^3 = 3197";
    r[3211] = "(59/4)^3 + (5/4)^3 = 3211";
    r[3215] = "(29/2)^3 + (11/2)^3 = 3215";
    r[3239] = "(310/21)^3 + (59/21)^3 = 3239";
    r[3240] = "(683/49)^3 + (397/49)^3 = 3240";
    r[3241] = "(43/3)^3 + (20/3)^3 = 3241";
    r[3249] = "(901/61)^3 + (182/61)^3 = 3249";
    r[3250] = "(375/28)^3 + (265/28)^3 = 3250";
    r[3256] = "(14/1)^3 + (8/1)^3 = 3256";
    r[3319] = "(1147/77)^3 + (184/77)^3 = 3319";
    r[3325] = "(1049/78)^3 + (751/78)^3 = 3325";
    r[3348] = "(205/14)^3 + (83/14)^3 = 3348";
    r[3367] = "(1513/114)^3 + (1151/114)^3 = 3367";
    r[3376] = "(15/1)^3 + (1/1)^3 = 3376";
    r[3383] = "(15/1)^3 + (2/1)^3 = 3383";
    r[3400] = "(2393/163)^3 + (1007/163)^3 = 3400";
    r[3402] = "(15/1)^3 + (3/1)^3 = 3402";
    r[3409] = "(44/3)^3 + (19/3)^3 = 3409";
    r[3439] = "(15/1)^3 + (4/1)^3 = 3439";
    r[3445] = "(1622/111)^3 + (763/111)^3 = 3445";
    r[3456] = "(12/1)^3 + (12/1)^3 = 3456";
    r[3458] = "(73/6)^3 + (71/6)^3 = 3458";
    r[3464] = "(37/3)^3 + (35/3)^3 = 3464";
    r[3465] = "(94/7)^3 + (71/7)^3 = 3465";
    r[3473] = "(14/1)^3 + (9/1)^3 = 3473";
    r[3474] = "(25/2)^3 + (23/2)^3 = 3474";
    r[3488] = "(38/3)^3 + (34/3)^3 = 3488";
    r[3500] = "(15/1)^3 + (5/1)^3 = 3500";
    r[3506] = "(77/6)^3 + (67/6)^3 = 3506";
    r[3523] = "(2593/171)^3 + (566/171)^3 = 3523";
    r[3527] = "(2520/169)^3 + (1007/169)^3 = 3527";
    r[3528] = "(13/1)^3 + (11/1)^3 = 3528";
    r[3547] = "(61/4)^3 + (3/4)^3 = 3547";
    r[3554] = "(79/6)^3 + (65/6)^3 = 3554";
    r[3584] = "(40/3)^3 + (32/3)^3 = 3584";
    r[3591] = "(15/1)^3 + (6/1)^3 = 3591";
    r[3592] = "(646/43)^3 + (252/43)^3 = 3592";
    r[3596] = "(871/57)^3 + (173/57)^3 = 3596";
    r[3618] = "(27/2)^3 + (21/2)^3 = 3618";
    r[3624] = "(46/3)^3 + (8/3)^3 = 3624";
    r[3656] = "(41/3)^3 + (31/3)^3 = 3656";
    r[3698] = "(83/6)^3 + (61/6)^3 = 3698";
    r[3718] = "(15/1)^3 + (7/1)^3 = 3718";
    r[3723] = "(316/21)^3 + (143/21)^3 = 3723";
    r[3724] = "(31/2)^3 + (1/2)^3 = 3724";
    r[3737] = "(566/39)^3 + (343/39)^3 = 3737";
    r[3744] = "(14/1)^3 + (10/1)^3 = 3744";
    r[3750] = "(815/57)^3 + (535/57)^3 = 3750";
    r[3782] = "(109/7)^3 + (13/7)^3 = 3782";
    r[3787] = "(46/3)^3 + (17/3)^3 = 3787";
    r[3794] = "(85/6)^3 + (59/6)^3 = 3794";
    r[3815] = "(31/2)^3 + (9/2)^3 = 3815";
    r[3816] = "(178/13)^3 + (140/13)^3 = 3816";
    r[3843] = "(905/62)^3 + (559/62)^3 = 3843";
    r[3848] = "(43/3)^3 + (29/3)^3 = 3848";
    r[3858] = "(47/3)^3 + (7/3)^3 = 3858";
    r[3861] = "(219/14)^3 + (45/14)^3 = 3861";
    r[3887] = "(15/1)^3 + (8/1)^3 = 3887";
    r[3906] = "(29/2)^3 + (19/2)^3 = 3906";
    r[3907] = "(63/4)^3 + (1/4)^3 = 3907";
    r[3913] = "(64/5)^3 + (61/5)^3 = 3913";
    r[3925] = "(13/1)^3 + (12/1)^3 = 3925";
    r[3943] = "(66/5)^3 + (59/5)^3 = 3943";
    r[3967] = "(67/5)^3 + (58/5)^3 = 3967";
    r[3968] = "(44/3)^3 + (28/3)^3 = 3968";
    r[3976] = "(110/7)^3 + (32/7)^3 = 3976";
    r[3997] = "(47/3)^3 + (16/3)^3 = 3997";
    r[4032] = "(992/65)^3 + (508/65)^3 = 4032";
    r[4033] = "(69/5)^3 + (56/5)^3 = 4033";
    r[4034] = "(89/6)^3 + (55/6)^3 = 4034";
    r[4075] = "(14/1)^3 + (11/1)^3 = 4075";
    r[4085] = "(1004/63)^3 + (211/63)^3 = 4085";
    r[4088] = "(2720/171)^3 + (682/171)^3 = 4088";
    r[4095] = "(1513/95)^3 + (362/95)^3 = 4095";
    r[4097] = "(16/1)^3 + (1/1)^3 = 4097";
    r[4104] = "(15/1)^3 + (9/1)^3 = 4104";
    r[4116] = "(623/39)^3 + (133/39)^3 = 4116";
    r[4123] = "(16/1)^3 + (3/1)^3 = 4123";
    r[4142] = "(221/14)^3 + (83/14)^3 = 4142";
    r[4160] = "(16/1)^3 + (4/1)^3 = 4160";
    r[4177] = "(72/5)^3 + (53/5)^3 = 4177";
    r[4178] = "(91/6)^3 + (53/6)^3 = 4178";
    r[4221] = "(16/1)^3 + (5/1)^3 = 4221";
    r[4231] = "(1384/91)^3 + (813/91)^3 = 4231";
    r[4237] = "(73/5)^3 + (52/5)^3 = 4237";
    r[4247] = "(113/7)^3 + (24/7)^3 = 4247";
    r[4256] = "(46/3)^3 + (26/3)^3 = 4256";
    r[4303] = "(74/5)^3 + (51/5)^3 = 4303";
    r[4312] = "(16/1)^3 + (6/1)^3 = 4312";
    r[4320] = "(114/7)^3 + (6/7)^3 = 4320";
    r[4338] = "(31/2)^3 + (17/2)^3 = 4338";
    r[4362] = "(49/3)^3 + (5/3)^3 = 4362";
    r[4374] = "(111/7)^3 + (51/7)^3 = 4374";
    r[4375] = "(15/1)^3 + (10/1)^3 = 4375";
    r[4381] = "(176/13)^3 + (161/13)^3 = 4381";
    r[4383] = "(1190/73)^3 + (271/73)^3 = 4383";
    r[4394] = "(13/1)^3 + (13/1)^3 = 4394";
    r[4396] = "(1087/78)^3 + (929/78)^3 = 4396";
    r[4401] = "(270/19)^3 + (219/19)^3 = 4401";
    r[4424] = "(47/3)^3 + (25/3)^3 = 4424";
    r[4439] = "(16/1)^3 + (7/1)^3 = 4439";
    r[4445] = "(507/31)^3 + (128/31)^3 = 4445";
    r[4453] = "(76/5)^3 + (49/5)^3 = 4453";
    r[4459] = "(49/3)^3 + (14/3)^3 = 4459";
    r[4465] = "(214/13)^3 + (21/13)^3 = 4465";
    r[4472] = "(14/1)^3 + (12/1)^3 = 4472";
    r[4480] = "(212/13)^3 + (68/13)^3 = 4480";
    r[4514] = "(95/6)^3 + (49/6)^3 = 4514";
    r[4535] = "(33/2)^3 + (7/2)^3 = 4535";
    r[4537] = "(77/5)^3 + (48/5)^3 = 4537";
    r[4541] = "(1835/111)^3 + (316/111)^3 = 4541";
    r[4559] = "(347/21)^3 + (76/21)^3 = 4559";
    r[4571] = "(614/37)^3 + (39/37)^3 = 4571";
    r[4608] = "(16/1)^3 + (8/1)^3 = 4608";
    r[4617] = "(111/7)^3 + (60/7)^3 = 4617";
    r[4625] = "(95/7)^3 + (90/7)^3 = 4625";
    r[4627] = "(78/5)^3 + (47/5)^3 = 4627";
    r[4632] = "(50/3)^3 + (4/3)^3 = 4632";
    r[4667] = "(3058/183)^3 + (173/183)^3 = 4667";
    r[4687] = "(223/14)^3 + (121/14)^3 = 4687";
    r[4706] = "(15/1)^3 + (11/1)^3 = 4706";
    r[4711] = "(50/3)^3 + (13/3)^3 = 4711";
    r[4712] = "(290/21)^3 + (268/21)^3 = 4712";
    r[4723] = "(79/5)^3 + (46/5)^3 = 4723";
    r[4745] = "(2009/129)^3 + (1276/129)^3 = 4745";
    r[4778] = "(943/56)^3 + (81/56)^3 = 4778";
    r[4808] = "(49/3)^3 + (23/3)^3 = 4808";
    r[4819] = "(319/21)^3 + (230/21)^3 = 4819";
    r[4825] = "(16/1)^3 + (9/1)^3 = 4825";
    r[4860] = "(901/61)^3 + (719/61)^3 = 4860";
    r[4914] = "(17/1)^3 + (1/1)^3 = 4914";
    r[4921] = "(17/1)^3 + (2/1)^3 = 4921";
    r[4923] = "(41/3)^3 + (40/3)^3 = 4923";
    r[4927] = "(124/9)^3 + (119/9)^3 = 4927";
    r[4933] = "(81/5)^3 + (44/5)^3 = 4933";
    r[4940] = "(17/1)^3 + (3/1)^3 = 4940";
    r[4941] = "(14/1)^3 + (13/1)^3 = 4941";
    r[4951] = "(127/9)^3 + (116/9)^3 = 4951";
    r[4963] = "(128/9)^3 + (115/9)^3 = 4963";
    r[4977] = "(17/1)^3 + (4/1)^3 = 4977";
    r[4993] = "(130/9)^3 + (113/9)^3 = 4993";
    r[5011] = "(131/9)^3 + (112/9)^3 = 5011";
    r[5014] = "(359/21)^3 + (55/21)^3 = 5014";
    r[5024] = "(50/3)^3 + (22/3)^3 = 5024";
    r[5025] = "(668/39)^3 + (7/39)^3 = 5025";
    r[5031] = "(44/3)^3 + (37/3)^3 = 5031";
    r[5038] = "(17/1)^3 + (5/1)^3 = 5038";
    r[5047] = "(82/5)^3 + (43/5)^3 = 5047";
    r[5053] = "(133/9)^3 + (110/9)^3 = 5053";
    r[5069] = "(973/57)^3 + (260/57)^3 = 5069";
    r[5074] = "(553/39)^3 + (509/39)^3 = 5074";
    r[5077] = "(134/9)^3 + (109/9)^3 = 5077";
    r[5096] = "(16/1)^3 + (10/1)^3 = 5096";
    r[5103] = "(15/1)^3 + (12/1)^3 = 5103";
    r[5129] = "(17/1)^3 + (6/1)^3 = 5129";
    r[5131] = "(136/9)^3 + (107/9)^3 = 5131";
    r[5138] = "(101/6)^3 + (43/6)^3 = 5138";
    r[5145] = "(683/42)^3 + (397/42)^3 = 5145";
    r[5159] = "(463/28)^3 + (241/28)^3 = 5159";
    r[5161] = "(137/9)^3 + (106/9)^3 = 5161";
    r[5167] = "(83/5)^3 + (42/5)^3 = 5167";
    r[5193] = "(46/3)^3 + (35/3)^3 = 5193";
    r[5208] = "(52/3)^3 + (2/3)^3 = 5208";
    r[5227] = "(139/9)^3 + (104/9)^3 = 5227";
    r[5256] = "(17/1)^3 + (7/1)^3 = 5256";
    r[5257] = "(52/3)^3 + (11/3)^3 = 5257";
    r[5263] = "(140/9)^3 + (103/9)^3 = 5263";
    r[5264] = "(110/7)^3 + (78/7)^3 = 5264";
    r[5282] = "(1689/98)^3 + (535/98)^3 = 5282";
    r[5293] = "(84/5)^3 + (41/5)^3 = 5293";
    r[5301] = "(47/3)^3 + (34/3)^3 = 5301";
    r[5341] = "(142/9)^3 + (101/9)^3 = 5341";
    r[5375] = "(35/2)^3 + (5/2)^3 = 5375";
    r[5376] = "(1732/111)^3 + (1292/111)^3 = 5376";
    r[5378] = "(103/6)^3 + (41/6)^3 = 5378";
    r[5383] = "(143/9)^3 + (100/9)^3 = 5383";
    r[5404] = "(1297/84)^3 + (1007/84)^3 = 5404";
    r[5425] = "(17/1)^3 + (8/1)^3 = 5425";
    r[5427] = "(16/1)^3 + (11/1)^3 = 5427";
    r[5453] = "(243/14)^3 + (85/14)^3 = 5453";
    r[5464] = "(720/49)^3 + (646/49)^3 = 5464";
    r[5473] = "(145/9)^3 + (98/9)^3 = 5473";
    r[5481] = "(229/13)^3 + (32/13)^3 = 5481";
    r[5488] = "(14/1)^3 + (14/1)^3 = 5488";
    r[5504] = "(52/3)^3 + (20/3)^3 = 5504";
    r[5509] = "(29/2)^3 + (27/2)^3 = 5509";
    r[5514] = "(53/3)^3 + (1/3)^3 = 5514";
    r[5517] = "(1820/103)^3 + (19/103)^3 = 5517";
    r[5521] = "(146/9)^3 + (97/9)^3 = 5521";
    r[5537] = "(655/39)^3 + (362/39)^3 = 5537";
    r[5551] = "(53/3)^3 + (10/3)^3 = 5551";
    r[5563] = "(86/5)^3 + (39/5)^3 = 5563";
    r[5571] = "(49/3)^3 + (32/3)^3 = 5571";
    r[5572] = "(15/1)^3 + (13/1)^3 = 5572";
    r[5616] = "(225/14)^3 + (159/14)^3 = 5616";
    r[5623] = "(148/9)^3 + (95/9)^3 = 5623";
    r[5634] = "(35/2)^3 + (13/2)^3 = 5634";
    r[5642] = "(17/1)^3 + (9/1)^3 = 5642";
    r[5661] = "(1007/67)^3 + (880/67)^3 = 5661";
    r[5670] = "(1387/79)^3 + (503/79)^3 = 5670";
    r[5677] = "(31/2)^3 + (25/2)^3 = 5677";
    r[5679] = "(1621/91)^3 + (272/91)^3 = 5679";
    r[5696] = "(212/13)^3 + (144/13)^3 = 5696";
    r[5707] = "(87/5)^3 + (38/5)^3 = 5707";
    r[5733] = "(50/3)^3 + (31/3)^3 = 5733";
    r[5752] = "(1080/61)^3 + (358/61)^3 = 5752";
    r[5768] = "(53/3)^3 + (19/3)^3 = 5768";
    r[5789] = "(772/43)^3 + (55/43)^3 = 5789";
    r[5791] = "(151/9)^3 + (92/9)^3 = 5791";
    r[5795] = "(231/13)^3 + (74/13)^3 = 5795";
    r[5824] = "(16/1)^3 + (12/1)^3 = 5824";
    r[5833] = "(18/1)^3 + (1/1)^3 = 5833";
    r[5840] = "(18/1)^3 + (2/1)^3 = 5840";
    r[5851] = "(152/9)^3 + (91/9)^3 = 5851";
    r[5857] = "(88/5)^3 + (37/5)^3 = 5857";
    r[5859] = "(18/1)^3 + (3/1)^3 = 5859";
    r[5886] = "(935/52)^3 + (217/52)^3 = 5886";
    r[5896] = "(18/1)^3 + (4/1)^3 = 5896";
    r[5906] = "(107/6)^3 + (37/6)^3 = 5906";
    r[5913] = "(17/1)^3 + (10/1)^3 = 5913";
    r[5957] = "(18/1)^3 + (5/1)^3 = 5957";
    r[5977] = "(127/7)^3 + (12/7)^3 = 5977";
    r[6000] = "(370/21)^3 + (170/21)^3 = 6000";
    r[6013] = "(33/2)^3 + (23/2)^3 = 6013";
    r[6021] = "(509/28)^3 + (67/28)^3 = 6021";
    r[6039] = "(706/39)^3 + (185/39)^3 = 6039";
    r[6043] = "(155/9)^3 + (88/9)^3 = 6043";
    r[6048] = "(18/1)^3 + (6/1)^3 = 6048";
    r[6111] = "(52/3)^3 + (29/3)^3 = 6111";
    r[6119] = "(15/1)^3 + (14/1)^3 = 6119";
    r[6122] = "(1129/70)^3 + (871/70)^3 = 6122";
    r[6126] = "(1145/63)^3 + (313/63)^3 = 6126";
    r[6144] = "(712/39)^3 + (152/39)^3 = 6144";
    r[6146] = "(1705/117)^3 + (1697/117)^3 = 6146";
    r[6175] = "(18/1)^3 + (7/1)^3 = 6175";
    r[6181] = "(55/3)^3 + (8/3)^3 = 6181";
    r[6188] = "(307/21)^3 + (305/21)^3 = 6188";
    r[6194] = "(109/6)^3 + (35/6)^3 = 6194";
    r[6201] = "(128/7)^3 + (31/7)^3 = 6201";
    r[6202] = "(507/31)^3 + (379/31)^3 = 6202";
    r[6244] = "(17/1)^3 + (11/1)^3 = 6244";
    r[6253] = "(158/9)^3 + (85/9)^3 = 6253";
    r[6262] = "(113/7)^3 + (89/7)^3 = 6262";
    r[6272] = "(669/38)^3 + (355/38)^3 = 6272";
    r[6281] = "(1198/65)^3 + (177/65)^3 = 6281";
    r[6292] = "(343/19)^3 + (141/19)^3 = 6292";
    r[6293] = "(16/1)^3 + (13/1)^3 = 6293";
    r[6309] = "(1672/91)^3 + (431/91)^3 = 6309";
    r[6327] = "(53/3)^3 + (28/3)^3 = 6327";
    r[6335] = "(37/2)^3 + (3/2)^3 = 6335";
    r[6343] = "(91/5)^3 + (34/5)^3 = 6343";
    r[6344] = "(18/1)^3 + (8/1)^3 = 6344";
    r[6355] = "(109/7)^3 + (96/7)^3 = 6355";
    r[6403] = "(160/9)^3 + (83/9)^3 = 6403";
    r[6480] = "(326/19)^3 + (214/19)^3 = 6480";
    r[6481] = "(161/9)^3 + (82/9)^3 = 6481";
    r[6498] = "(37/2)^3 + (11/2)^3 = 6498";
    r[6499] = "(356/21)^3 + (247/21)^3 = 6499";
    r[6517] = "(35/2)^3 + (21/2)^3 = 6517";
    r[6561] = "(18/1)^3 + (9/1)^3 = 6561";
    r[6573] = "(1573/84)^3 + (155/84)^3 = 6573";
    r[6584] = "(1966/105)^3 + (284/105)^3 = 6584";
    r[6623] = "(129/7)^3 + (50/7)^3 = 6623";
    r[6631] = "(1945/111)^3 + (1196/111)^3 = 6631";
    r[6632] = "(607/35)^3 + (393/35)^3 = 6632";
    r[6641] = "(17/1)^3 + (12/1)^3 = 6641";
    r[6643] = "(163/9)^3 + (80/9)^3 = 6643";
    r[6656] = "(56/3)^3 + (16/3)^3 = 6656";
    r[6697] = "(93/5)^3 + (32/5)^3 = 6697";
    r[6715] = "(479/26)^3 + (201/26)^3 = 6715";
    r[6727] = "(164/9)^3 + (79/9)^3 = 6727";
    r[6750] = "(15/1)^3 + (15/1)^3 = 6750";
    r[6751] = "(132/7)^3 + (25/7)^3 = 6751";
    r[6760] = "(46/3)^3 + (44/3)^3 = 6760";
    r[6771] = "(725/39)^3 + (274/39)^3 = 6771";
    r[6786] = "(131/7)^3 + (43/7)^3 = 6786";
    r[6790] = "(47/3)^3 + (43/3)^3 = 6790";
    r[6808] = "(398/21)^3 + (16/21)^3 = 6808";
    r[6813] = "(55/3)^3 + (26/3)^3 = 6813";
    r[6818] = "(113/6)^3 + (31/6)^3 = 6818";
    r[6832] = "(18/1)^3 + (10/1)^3 = 6832";
    r[6840] = "(16/1)^3 + (14/1)^3 = 6840";
    r[6848] = "(360/19)^3 + (68/19)^3 = 6848";
    r[6858] = "(1761/104)^3 + (1311/104)^3 = 6858";
    r[6860] = "(19/1)^3 + (1/1)^3 = 6860";
    r[6867] = "(19/1)^3 + (2/1)^3 = 6867";
    r[6883] = "(94/5)^3 + (31/5)^3 = 6883";
    r[6886] = "(19/1)^3 + (3/1)^3 = 6886";
    r[6901] = "(166/9)^3 + (77/9)^3 = 6901";
    r[6903] = "(1409/74)^3 + (7/74)^3 = 6903";
    r[6910] = "(49/3)^3 + (41/3)^3 = 6910";
    r[6914] = "(1999/105)^3 + (251/105)^3 = 6914";
    r[6923] = "(19/1)^3 + (4/1)^3 = 6923";
    r[6958] = "(635/38)^3 + (501/38)^3 = 6958";
    r[6973] = "(1727/91)^3 + (470/91)^3 = 6973";
    r[6984] = "(19/1)^3 + (5/1)^3 = 6984";
    r[6991] = "(167/9)^3 + (76/9)^3 = 6991";
    r[7000] = "(50/3)^3 + (40/3)^3 = 7000";
    r[7040] = "(1258/67)^3 + (502/67)^3 = 7040";
    r[7049] = "(227/14)^3 + (197/14)^3 = 7049";
    r[7067] = "(130/7)^3 + (61/7)^3 = 7067";
    r[7072] = "(1514/79)^3 + (254/79)^3 = 7072";
    r[7075] = "(19/1)^3 + (6/1)^3 = 7075";
    r[7083] = "(56/3)^3 + (25/3)^3 = 7083";
    r[7085] = "(343/19)^3 + (202/19)^3 = 7085";
    r[7107] = "(367/21)^3 + (254/21)^3 = 7107";
    r[7110] = "(17/1)^3 + (13/1)^3 = 7110";
    r[7112] = "(250/13)^3 + (4/13)^3 = 7112";
    r[7128] = "(1853/97)^3 + (523/97)^3 = 7128";
    r[7141] = "(917/57)^3 + (820/57)^3 = 7141";
    r[7154] = "(115/6)^3 + (29/6)^3 = 7154";
    r[7163] = "(18/1)^3 + (11/1)^3 = 7163";
    r[7177] = "(169/9)^3 + (74/9)^3 = 7177";
    r[7189] = "(37/2)^3 + (19/2)^3 = 7189";
    r[7202] = "(19/1)^3 + (7/1)^3 = 7202";
    r[7208] = "(1080/61)^3 + (722/61)^3 = 7208";
    r[7231] = "(58/3)^3 + (5/3)^3 = 7231";
    r[7240] = "(52/3)^3 + (38/3)^3 = 7240";
    r[7273] = "(96/5)^3 + (29/5)^3 = 7273";
    r[7300] = "(737/38)^3 + (63/38)^3 = 7300";
    r[7328] = "(58/3)^3 + (14/3)^3 = 7328";
    r[7352] = "(989/63)^3 + (955/63)^3 = 7352";
    r[7363] = "(130/7)^3 + (69/7)^3 = 7363";
    r[7371] = "(19/1)^3 + (8/1)^3 = 7371";
    r[7372] = "(231/13)^3 + (157/13)^3 = 7372";
    r[7390] = "(53/3)^3 + (37/3)^3 = 7390";
    r[7415] = "(39/2)^3 + (1/2)^3 = 7415";
    r[7471] = "(16/1)^3 + (15/1)^3 = 7471";
    r[7477] = "(97/5)^3 + (28/5)^3 = 7477";
    r[7506] = "(39/2)^3 + (9/2)^3 = 7506";
    r[7553] = "(685/37)^3 + (394/37)^3 = 7553";
    r[7560] = "(18/1)^3 + (12/1)^3 = 7560";
    r[7568] = "(1085/57)^3 + (499/57)^3 = 7568";
    r[7573] = "(173/9)^3 + (70/9)^3 = 7573";
    r[7588] = "(19/1)^3 + (9/1)^3 = 7588";
    r[7609] = "(59/3)^3 + (4/3)^3 = 7609";
    r[7622] = "(511/26)^3 + (81/26)^3 = 7622";
    r[7657] = "(17/1)^3 + (14/1)^3 = 7657";
    r[7677] = "(58/3)^3 + (23/3)^3 = 7677";
    r[7687] = "(98/5)^3 + (27/5)^3 = 7687";
    r[7688] = "(59/3)^3 + (13/3)^3 = 7688";
    r[7696] = "(129/7)^3 + (79/7)^3 = 7696";
    r[7733] = "(214/13)^3 + (193/13)^3 = 7733";
    r[7748] = "(309/19)^3 + (287/19)^3 = 7748";
    r[7749] = "(248/13)^3 + (121/13)^3 = 7749";
    r[7750] = "(55/3)^3 + (35/3)^3 = 7750";
    r[7777] = "(843/43)^3 + (268/43)^3 = 7777";
    r[7783] = "(175/9)^3 + (68/9)^3 = 7783";
    r[7784] = "(1810/93)^3 + (692/93)^3 = 7784";
    r[7786] = "(1285/78)^3 + (1163/78)^3 = 7786";
    r[7803] = "(597/31)^3 + (270/31)^3 = 7803";
    r[7848] = "(616/31)^3 + (38/31)^3 = 7848";
    r[7859] = "(19/1)^3 + (10/1)^3 = 7859";
    r[7874] = "(119/6)^3 + (25/6)^3 = 7874";
    r[7875] = "(248/13)^3 + (127/13)^3 = 7875";
    r[7891] = "(176/9)^3 + (67/9)^3 = 7891";
    r[7902] = "(751/42)^3 + (545/42)^3 = 7902";
    r[7903] = "(99/5)^3 + (26/5)^3 = 7903";
    r[7936] = "(410/21)^3 + (166/21)^3 = 7936";
    r[7943] = "(419/21)^3 + (4/21)^3 = 7943";
    r[7960] = "(56/3)^3 + (34/3)^3 = 7960";
    r[7986] = "(407/21)^3 + (187/21)^3 = 7986";
    r[7992] = "(114/7)^3 + (108/7)^3 = 7992";
    r[8001] = "(20/1)^3 + (1/1)^3 = 8001";
    r[8008] = "(20/1)^3 + (2/1)^3 = 8008";
    r[8027] = "(20/1)^3 + (3/1)^3 = 8027";
    r[8029] = "(18/1)^3 + (13/1)^3 = 8029";
    r[8056] = "(1258/67)^3 + (756/67)^3 = 8056";
    r[8064] = "(20/1)^3 + (4/1)^3 = 8064";
    r[8113] = "(178/9)^3 + (65/9)^3 = 8113";
    r[8125] = "(20/1)^3 + (5/1)^3 = 8125";
    r[8127] = "(382/19)^3 + (5/19)^3 = 8127";
    r[8183] = "(1136/57)^3 + (367/57)^3 = 8183";
    r[8190] = "(19/1)^3 + (11/1)^3 = 8190";
    r[8192] = "(16/1)^3 + (16/1)^3 = 8192";
    r[8198] = "(65/4)^3 + (63/4)^3 = 8198";
    r[8201] = "(421/21)^3 + (110/21)^3 = 8201";
    r[8216] = "(20/1)^3 + (6/1)^3 = 8216";
    r[8227] = "(179/9)^3 + (64/9)^3 = 8227";
    r[8246] = "(67/4)^3 + (61/4)^3 = 8246";
    r[8258] = "(121/6)^3 + (23/6)^3 = 8258";
    r[8288] = "(17/1)^3 + (15/1)^3 = 8288";
    r[8316] = "(597/31)^3 + (327/31)^3 = 8316";
    r[8323] = "(614/37)^3 + (575/37)^3 = 8323";
    r[8326] = "(281/14)^3 + (87/14)^3 = 8326";
    r[8342] = "(69/4)^3 + (59/4)^3 = 8342";
    r[8343] = "(20/1)^3 + (7/1)^3 = 8343";
    r[8353] = "(101/5)^3 + (24/5)^3 = 8353";
    r[8407] = "(61/3)^3 + (2/3)^3 = 8407";
    r[8408] = "(35/2)^3 + (29/2)^3 = 8408";
    r[8409] = "(1798/105)^3 + (1577/105)^3 = 8409";
    r[8440] = "(58/3)^3 + (32/3)^3 = 8440";
    r[8456] = "(61/3)^3 + (11/3)^3 = 8456";
    r[8461] = "(181/9)^3 + (62/9)^3 = 8461";
    r[8486] = "(71/4)^3 + (57/4)^3 = 8486";
    r[8512] = "(20/1)^3 + (8/1)^3 = 8512";
    r[8541] = "(131/7)^3 + (88/7)^3 = 8541";
    r[8572] = "(1693/84)^3 + (611/84)^3 = 8572";
    r[8576] = "(18/1)^3 + (14/1)^3 = 8576";
    r[8577] = "(2213/109)^3 + (646/109)^3 = 8577";
    r[8581] = "(182/9)^3 + (61/9)^3 = 8581";
    r[8587] = "(19/1)^3 + (12/1)^3 = 8587";
    r[8618] = "(2275/111)^3 + (227/111)^3 = 8618";
    r[8658] = "(41/2)^3 + (7/2)^3 = 8658";
    r[8678] = "(73/4)^3 + (55/4)^3 = 8678";
    r[8703] = "(61/3)^3 + (20/3)^3 = 8703";
    r[8710] = "(59/3)^3 + (31/3)^3 = 8710";
    r[8721] = "(756/37)^3 + (213/37)^3 = 8721";
    r[8729] = "(20/1)^3 + (9/1)^3 = 8729";
    r[8739] = "(1672/91)^3 + (1241/91)^3 = 8739";
    r[8748] = "(267/13)^3 + (57/13)^3 = 8748";
    r[8750] = "(265/13)^3 + (85/13)^3 = 8750";
    r[8775] = "(128/7)^3 + (97/7)^3 = 8775";
    r[8785] = "(1006/49)^3 + (249/49)^3 = 8785";
    r[8792] = "(37/2)^3 + (27/2)^3 = 8792";
    r[8827] = "(62/3)^3 + (1/3)^3 = 8827";
    r[8855] = "(1262/61)^3 + (3/61)^3 = 8855";
    r[8864] = "(62/3)^3 + (10/3)^3 = 8864";
    r[8892] = "(145/7)^3 + (11/7)^3 = 8892";
    r[8910] = "(1621/91)^3 + (1349/91)^3 = 8910";
    r[8918] = "(75/4)^3 + (53/4)^3 = 8918";
    r[8946] = "(229/13)^3 + (197/13)^3 = 8946";
    r[8953] = "(185/9)^3 + (58/9)^3 = 8953";
    r[8957] = "(436/21)^3 + (41/21)^3 = 8957";
    r[8987] = "(50/3)^3 + (49/3)^3 = 8987";
    r[9000] = "(20/1)^3 + (10/1)^3 = 9000";
    r[9009] = "(17/1)^3 + (16/1)^3 = 9009";
    r[9037] = "(41/2)^3 + (15/2)^3 = 9037";
    r[9045] = "(763/39)^3 + (452/39)^3 = 9045";
    r[9053] = "(52/3)^3 + (47/3)^3 = 9053";
    r[9056] = "(19/1)^3 + (13/1)^3 = 9056";
    r[9073] = "(104/5)^3 + (21/5)^3 = 9073";
    r[9074] = "(125/6)^3 + (19/6)^3 = 9074";
    r[9081] = "(62/3)^3 + (19/3)^3 = 9081";
    r[9106] = "(235/14)^3 + (229/14)^3 = 9106";
    r[9119] = "(53/3)^3 + (46/3)^3 = 9119";
    r[9152] = "(146/7)^3 + (30/7)^3 = 9152";
    r[9206] = "(77/4)^3 + (51/4)^3 = 9206";
    r[9207] = "(18/1)^3 + (15/1)^3 = 9207";
    r[9211] = "(187/9)^3 + (56/9)^3 = 9211";
    r[9262] = "(21/1)^3 + (1/1)^3 = 9262";
    r[9269] = "(21/1)^3 + (2/1)^3 = 9269";
    r[9288] = "(21/1)^3 + (3/1)^3 = 9288";
    r[9310] = "(61/3)^3 + (29/3)^3 = 9310";
    r[9317] = "(55/3)^3 + (44/3)^3 = 9317";
    r[9324] = "(2399/114)^3 + (193/114)^3 = 9324";
    r[9325] = "(21/1)^3 + (4/1)^3 = 9325";
    r[9331] = "(20/1)^3 + (11/1)^3 = 9331";
    r[9343] = "(188/9)^3 + (55/9)^3 = 9343";
    r[9368] = "(39/2)^3 + (25/2)^3 = 9368";
    r[9386] = "(21/1)^3 + (5/1)^3 = 9386";
    r[9395] = "(2191/104)^3 + (369/104)^3 = 9395";
    r[9449] = "(56/3)^3 + (43/3)^3 = 9449";
    r[9464] = "(1772/93)^3 + (1270/93)^3 = 9464";
    r[9477] = "(21/1)^3 + (6/1)^3 = 9477";
    r[9506] = "(127/6)^3 + (17/6)^3 = 9506";
    r[9520] = "(1406/73)^3 + (974/73)^3 = 9520";
    r[9542] = "(79/4)^3 + (49/4)^3 = 9542";
    r[9549] = "(1853/97)^3 + (1330/97)^3 = 9549";
    r[9583] = "(106/5)^3 + (19/5)^3 = 9583";
    r[9603] = "(19/1)^3 + (14/1)^3 = 9603";
    r[9604] = "(21/1)^3 + (7/1)^3 = 9604";
    r[9613] = "(190/9)^3 + (53/9)^3 = 9613";
    r[9620] = "(1123/62)^3 + (957/62)^3 = 9620";
    r[9640] = "(62/3)^3 + (28/3)^3 = 9640";
    r[9641] = "(1331/74)^3 + (1157/74)^3 = 9641";
    r[9672] = "(1342/63)^3 + (116/63)^3 = 9672";
    r[9709] = "(823/42)^3 + (545/42)^3 = 9709";
    r[9728] = "(20/1)^3 + (12/1)^3 = 9728";
    r[9751] = "(191/9)^3 + (52/9)^3 = 9751";
    r[9773] = "(21/1)^3 + (8/1)^3 = 9773";
    r[9779] = "(58/3)^3 + (41/3)^3 = 9779";
    r[9824] = "(1298/63)^3 + (646/63)^3 = 9824";
    r[9826] = "(17/1)^3 + (17/1)^3 = 9826";
    r[9847] = "(107/5)^3 + (18/5)^3 = 9847";
    r[9891] = "(64/3)^3 + (17/3)^3 = 9891";
    r[9926] = "(81/4)^3 + (47/4)^3 = 9926";
    r[9928] = "(18/1)^3 + (16/1)^3 = 9928";
    r[9954] = "(43/2)^3 + (5/2)^3 = 9954";
    r[9977] = "(59/3)^3 + (40/3)^3 = 9977";
    r[9990] = "(21/1)^3 + (9/1)^3 = 9990";

    Scanner scan;

    if (System.getenv("KD_READ_STDIN") != null) {
      scan = new Scanner(new File("c.in"));
    } else {
      scan = new Scanner(System.in);
    }
    // for (int i = 1; i < 10000; i++) {
    // processCase(i);
    // }
    int n;
    while (scan.hasNextInt()) {
      n = scan.nextInt();
      if (n == 0) {
        break;
      }
      getResult(n);
      // processCase(n);
    }

  }

  public static void getResult(int i) {
    if (r[i] != null) {
      System.out.println(r[i]);
    } else {
      System.out.println("No value.");
    }
  }

  private static void bruteForce(int n) {
    for (long b = 0; b < 4000; b++) {
      for (long a = 0; a + 2 * b < 4000; a++) {
        for (long c = 0; c <= a && a + c + 2 * b < 4000; c++) {
          // if()
        }
      }
    }
  }

  /**
   * @param n
   */
  private static void processCase(int n) {
    long curr = n;
    for (long b = 1; b < 4000; b++) {
      curr = n * b * b * b;
      if (curr > 64000000000l) {
        break;
      }
      for (long a = (long) (Math.cbrt(curr) / 2.0); (2 * b + a) < 4000; a++) {
        // for (long a = 1; (2 * b + a) < 4000; a++) {
        long diff = curr - a * a * a;
        if (diff <= 0) {
          break;
        }
        double cd = Math.cbrt(diff);
        long c = Math.round(cd);
        if (c * c * c == diff) {
          if (a + 2 * b + c < 4000) {
            System.out.printf("r[%d]=\"(%d/%d)^3 + (%d/%d)^3 = %d\";\n", n, Math.max(a, c), b,
                Math.min(a, c), b,
                n);
            // System.out.printf("(%d/%d)^3 + (%d/%d)^3 = %d\n", a, b, c, b, n);
            return;
          }
        }
      }
    }
    // System.out.println("No value.");
  }
}